﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="seal_revoke_conf.aspx.cs" Inherits="seal_seal_revoke_conf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>確認シール破棄登録　取消</title>
    <meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="../css/global.css" />
    <script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
    
</head>
<body>
    <% 
        string formtitle = "確認シール破棄登録　取消";
        
    %>
    
<!--#include file="../public/title.aspx" --> 

<form id="Form1"  method="post" runat="server">
<% Kaidou.Model.TrnPurchSeal_a model = (Kaidou.Model.TrnPurchSeal_a)Session["CANCELED_SEAL"];  %>
	<table width="600" border="0" cellspacing="0" cellpadding="0" align="center">
		<tbody><tr> 
			<td> 
				<br>
				<table width="600" border="0" cellspacing="0" cellpadding="0">
					<tbody><tr> 
						<td colspan="2"> 
							<p><b><font color="#666666">1.破棄取消対象　確認シール番号</font></b></p>
						</td>
					</tr>
				</tbody></table>
				<br>
				<table width="50%" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
					              <table width="100%" border="0" cellspacing="1" cellpadding="2">
						                <tbody><tr> 
						                	<td width="15%" bgcolor="#f0f0f0" nowrap="" align="center"><br>
										    <%=model.SealStrNo%>
										    <%
											if ( !model.SealStrNo.Equals(model.SealEndNo) ) {
										    %>
												　　    ～　　 <%= model.SealEndNo %>
										    <%
											    }
										    %>
									<br> &nbsp;</td>
								</tr>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>
				<br>
				<br>
				<table width="600" border="0" cellspacing="0" cellpadding="0">
					<tbody><tr> 
						<td colspan="2"> 
							<p><b><font color="#666666">2.購入内訳</font></b></p>
						</td>
					</tr>
				</tbody></table>
				<br>
				<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="100%" border="0" cellspacing="1" cellpadding="2">
								<tbody><tr> 
									<td bgcolor="#f0f0f0" width="80%"> 
										<div align="center">組合員名</div>
									</td>
									<td bgcolor="#f0f0f0" width="20%"> 
										<div align="center">枚数</div>
									</td>
								</tr>
	
	 <%
		ArrayList union_office_name = model.getUnion_office_name();
        ArrayList union_seal_qty = model.getUnion_seal_qty();
		for (int i=0; i<union_office_name.Count; i++) {
	%>
	
								<tr bgcolor="#FFFFFF"> 
									<td> 
										<div align="left"><%=(string)union_office_name[i]%></div>
									</td>
									<td> 
										<div align="right"><%=(string)union_seal_qty[i]%> 枚</div>
									</td>
								</tr>
	<%
		}
	%>
	
	<%
		int total_qty = 0;
        for (int i = 0; i < union_seal_qty.Count; i++)
        {
			total_qty += int.Parse((string)union_seal_qty[i]);
		}
	%>
								<tr> 
									<td bgcolor="#f0f0f0"> 
										<div align="center">合　計</div>
									</td>
									<td bgcolor="#f0f0f0"> 
	
										<div align="right"><%=total_qty %> 枚</div>
									</td>
								</tr>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>
				
				<br>
				<br>
				<table width="600" border="0" cellspacing="0" cellpadding="0">
					<tbody><tr> 
						<td colspan="2"> 
							<p><b><font color="#666666">3.破棄情報</font></b></p>
						</td>
					</tr>
				</tbody></table>
				<br>
				<table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#999999">
					<tbody><tr> 
						<td width="0" height="0"> 
							<table width="100%" border="0" cellspacing="1" cellpadding="2">
								<tbody><tr> 
									<td bgcolor="#f0f0f0" width="50%"> 
										<div align="center">破棄登録日時</div>
									</td>
									<td bgcolor="#f0f0f0" width="50%"> 
										<div align="center">破棄登録ユーザ</div>
									</td>
								</tr>
<%

    Kaidou.Persister.TRN_Report_Seal_Persister dao1 = new Kaidou.Persister.TRN_Report_Seal_Persister();
    ArrayList list= dao1.sealReport(model.SealStrNo, model.SealStrNo != model.SealEndNo ? model.SealEndNo : model.SealStrNo);
    for (int i = 0; i < list.Count;i++ )
    {
        Kaidou.Model.MstUnion m = (Kaidou.Model.MstUnion)list[i];

 %>
	
								<tr bgcolor="#FFFFFF"> 
									<td> 
										<div align="left"><%=m.UpdDate.ToString("yyyy年MM月dd日 HH時mm分")%></div>
									</td>
									<td> 
										<div align="right"><%=m.OfficeName %></div>
									</td>
								</tr>
<%} %>
							</tbody></table>
						</td>
					</tr>
				</tbody></table>
				
				<br>
				<font color="#FF0000">上記の確認シールの破棄登録を取り消してよろしいですか。</font><br>
				<br>
				<table width="600" border="0" cellpadding="0" cellspacing="0">
					<tbody><tr> 
						<td> 
						    <asp:Button ID="sb" Text="破棄登録取消の確定" runat="server" OnClick="login_confirm" />
							
							&nbsp; 
							<input type="button" value="戻る" onclick="history.back()">
						</td>
					</tr>
				</tbody></table>
			</td>
		</tr>
	</tbody></table>
	<br>
</form>

<!--#include file="../public/footer.aspx" --> 
</body>
</html>